package com.ctgu.rabbitmq.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * @ TableName t_users
 */
@TableName(value ="t_users")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UsersEntity implements Serializable {

    @TableId(value = "id")
    private Integer id;

    @TableField(value = "username")
    private String username;

    @TableField(value = "reward_points")
    private BigDecimal rewardPoints;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}